package ajax.service;

import ajax.dao.UserDAO;
import ajax.entity.User;

public class UserService {
    //属性userDao, 方便操作数据库
    private UserDAO userDAO = new UserDAO();
    public User getUserByName(String username){
        User user = userDAO.querySingle("select * from user where username = ?"
                , User.class, username);
        return user;
    }
}
